package cn.com.server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

import cn.com.server.dao.WhiteListDao;
import cn.com.server.entity.WhiteList;
import cn.com.server.service.WhiteListService;
import cn.com.server.extend.model.WhiteListModel;

/**
 * <p>
 * 白名单表  服务实现类
 * </p>
 *
 * @author qing
 * @since 2017-11-20
 */
@Service
public class WhiteListServiceImp implements WhiteListService{
	
	@Autowired
	private WhiteListDao dao;
	
	@Override
	public Page<WhiteList> selectWhiteLists(WhiteListModel model){
		PageHelper.startPage(model.getPage(), model.getLimit());
		return dao.selectWhiteLists(model);
	}
}
